package com.trembear.ucarfeignclient.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author Junwei.Xiong
 * @description:
 * @create 2018-07-10 10:03
 */
@FeignClient(name="carclient",fallback = CarServiceHystrix.class)
public interface CarService {
    @RequestMapping(method = RequestMethod.GET, value = "/car/volvo")
    String getCar();
}
